#ifndef MULTILAYOUT_H
#define MULTILAYOUT_H

#include <QGridLayout>
#include "IImagePanel.h"

class MultiLayout : public IImagePanel
{
	Q_OBJECT
public:
	explicit MultiLayout(int iRow = 1, int iColumn = 1, QWidget *parent = 0);
	void reset() {}
	void saveImage(bool bIsDiagnosis);

public slots:
	void SlotWindowing(int width, int center);
	void SlotGamma(int gamma);
	void SlotSetTool(ETool eTool);
	void SlotChildSelected();
	void SlotSaveCurrent();
	void SlotSaveDiagnosis();

private slots:
	void SlotItemDoubleClick();

private:
	void setItemMax(QWidget *pWidget);
	void setItemNormal(QWidget *pWidget);

private:
	QGridLayout *m_pLayout;
	int m_iSelectedIndex;
	QPoint m_posMaxWidget;
	QSize m_gridSize;
};

#endif // MULTILAYOUT_H
